"""
@filename: __init__.py
@project: flask_project
@author: wlf
@time: 2022-09-04
"""

from flask_sqlalchemy import SQLAlchemy


db = SQLAlchemy()


def init_app_db(app):
    db.init_app(app)
    # 自动创建数据表,要求连接数据库的用户有创建权限
    db.create_all(app=app)


from . import user
from . import school
from . import admin
from . import posts
from . import comments
from . import like

